# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=bkhive
pkgver=1.1.1
pkgrel=2
pkgdesc='Program for dumping the syskey bootkey from a Windows NT/2K/XP system hive.'
arch=('x86_64' 'aarch64')
groups=('blackarch' 'blackarch-cracker')
url='http://sourceforge.net/projects/ophcrack'
license=('GPL')
source=("http://downloads.sourceforge.net/ophcrack/$pkgname-$pkgver.tar.gz"
	      'syskey.txt')
sha512sums=('2962732f024d8e2c4bc3b1ffcf11caa99f18af0dd2e6c0844db721cf10c7bd565947beb4f05fccf63ffce287b82479c8e7019318da41545bd25c55a821973b69'
            '87455911f6f007b832591688418ec5aa4451ced31126d0bf25d15523e9014942fae6a34c2bfd431187ecb3831c14bffa5b5e2b1cf37f50f879afb428c1f19c9e')

build() {
  cd "$pkgname-$pkgver"

  make
}

package(){
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"

  install -Dm 644 "$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
  install -Dm 644 ../syskey.txt "$pkgdir/usr/share/doc/$pkgname/syskey.txt"
}

